package com.weizai.carshop.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.weizai.carshop.model.config.LocalDateTimeConfig;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class CartListDto {

    private Long id;

    private Long userId;

    private Long goodsId;

    private Integer goodsNum;

    private BigDecimal goodsPrice;

    private String goodsNorm;

    @JsonSerialize(using = LocalDateTimeConfig.LocalDateTimeSerializer.class)
    private Long createTime;

    @JsonSerialize(using = LocalDateTimeConfig.LocalDateTimeSerializer.class)
    private Long updateTime;
}
